package com.lancoo.znbkxx.teacher.model.data

import android.os.Parcelable
import com.luck.picture.lib.entity.LocalMedia
import kotlinx.android.parcel.Parcelize

/**
 * @author : Admin
 * @date   : 2020/10/27
 * @desc   :
 */
data class SkillCommentInfoBean(
        var AnsweringSkills: Any,
        var AudioPath: String,
        var ClassicWrongQues: ArrayList<ClassicWrongQue>,
        var Flag: Int,
        var GenreID: String,
        var PicturePath: String,
        var RecQuesID: ArrayList<RecQuesID>,
        var SchoolID: String,
        var SolutionContent: String,
        var StuID: String,
        var TID: String,
        var TypeNo: String,
        var VideoPath: String
)

data class SkillCommentInfoBeanSave(
        var AnsweringSkills: String,
        var AudioPath: String,
        var ClassicWrongQues: ArrayList<ClassicWrongQue>,
        var Flag: Int,
        var GenreID: String,
        var PicturePath: String,
        var RecQuesID: ArrayList<RecQuesID>,
        var SchoolID: String,
        var SolutionContent: String,
        var StuID: String,
        var TID: String,
        var TypeNo: String,
        var VideoPath: String
)

@Parcelize
data class AnsweringSkill(
        var AnswerSkillDataList: ArrayList<AnswerSkillData>,
        val KlgType: String,
        val KlgTypeCode: String,
        val KnowledgeCode: String,
        val KnowledgeName: String,
        val Version: String,
        val VersionCode: String
) : Parcelable

@Parcelize
data class ClassicWrongQue(
        val Brief: String,
        val LoseRate: Double,
        val PaperName: String,
        val QuesID: String,
        val RecordTime: String,
        val UseTime: String,
        val WeakZSDNum: Int
) : Parcelable {
    override fun equals(obj: Any?): Boolean {
        if (this === obj) return true
        if (obj == null || javaClass != obj.javaClass) return false
        val classicWrongQue = obj as ClassicWrongQue
        return QuesID == classicWrongQue.QuesID
    }
}

@Parcelize
data class RecQuesID(
        val QuesBrief: String,
        val QuesID: String
) : Parcelable

@Parcelize
data class AnswerSkillData(
        var isSelect: Boolean,
        val MainContext: String,
        val SourceUrl: String,
        val Title: String
) : Parcelable